<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div>
    <%@ include file="/WEB-INF/views/session.jsp" %>
</div>
<div id="area">
	<div class="content" id="work">
	    <center>
	      <table width="600" border="0">
            <tr class="tableTitle">
                <td width="500">Maquinarias</td>
            </tr>
            <tr>
                <td>
                    <c:forEach items="${data}" var="lista">               
                        <table width="354">
                      <tr>
                                <td width="83">
                                    <img src="<c:url value="/resources/images/${lista.imagen}.jpg" />" width="133" height="168">                                </td>
              <td width="259">
                                   <p>CODIGO: <c:out value="${lista.codigo}" /><br>
                                       DESCRIPCION: <c:out value="${lista.descripcion}" /><br>
				                       PRECIO: <c:out value="${lista.precio}" /><br>
				                       ESTADO: <c:out value="${lista.estado}" /><br>
                                    <p>
                                     <a href="detalle.gsp?codigo=${lista.codigo}"><c:out value="Detalle" /></a>
                                    </p>
                                </td>
                          </tr>
                        </table>                   
                  </c:forEach>
                </td>
            </tr>
        </table>
	    </center>
	</div>
	<div class="sidenav" id="nave">
		<%@ include file="/WEB-INF/views/menu.jsp" %>
		<p>&nbsp;</p>
	</div>
</div>

